<!-- 添加银行卡 -->
<template>
	<view class="container">
		<view class="list-box-bg">
			<view class="list-box">
				<view class="list-item-head">
					请绑定持卡人本人的银行卡
				</view>
				<view class="list-item">
					<view class="list-item-left">持卡人</view>
					<input class="list-item-right" />
				</view>
				<view class="list-item">
					<view class="list-item-left">卡号</view>
					<input class="list-item-right" />
				</view>
				<view class="list-item">
					<view class="list-item-left">卡类型</view>
					<view class="list-item-right">
						<picker class="input-picker" @change="bankTypeChange" :value="bankTypeIndex" :range="bankTypeArr" range-key="name">
							<view class="">{{bankTypeArr[bankTypeIndex].name}}</view>
						</picker>
						<image class="input-picker-img" src="../../static/images/arrow.png"></image>
					</view>
				</view>
			</view>
		</view>
		<view class="submit-btn">完成</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				bankTypeIndex: 0,
				bankTypeArr: [
					{id: 1, name: '招商银行'},
					{id: 2, name: '建设银行'},
					{id: 3, name: '工商银行'}
				]
			};
		},
		
		methods: {
			
			bankTypeChange(e) {
				this.bankTypeIndex = e.target.value;
			}
			
		}
	}
</script>
<style>
	page {
		color: #333333;
		background-color: #eeeeee;
	}

	.container {
		width: 750rpx;
		height: auto;
	}

	.list-box-bg {
		background-color: #ffffff;
		width: 750rpx;
		height: 432rpx;
	}

	.list-box {
		display: flex;
		flex-direction: column;
		margin-top: 17rpx;
		margin-left: 60rpx;
		margin-right: 60rpx;
	}

	.list-item-head {
		display: flex;
		flex-direction: row;
		height: 136rpx;
		justify-content: center;
		align-items: center;
		align-content: center;
		font-size: 30rpx;
		color: #333333;
		font-weight: bold;
	}

	.list-item {
		height: 84rpx;
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
		border-bottom: solid 1rpx #f5f5f5;
	}

	.list-item-left {
		width: 72rpx;
		height: 24rpx;
		font-size: 24rpx;
		line-height: 24rpx;
		letter-spacing: 0rpx;
		color: #666666;
		display: flex;
		flex-direction: row;
		align-content: center;
		align-items: center;
		justify-content: space-between;
	}

	.list-item-right {
		width: 78%;
		height: 46rpx;
		font-size: 30rpx !important;
		color: #333333 !important;
		margin-right: 10rpx;
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
		padding-left: 10rpx;
		padding-right: 10rpx;
	}

	.input-picker {
		width: 430rpx;
	}

	.input-picker-img {
		width: 20rpx;
		height: 20rpx;
		display: flex;
		flex-direction: row;
	}

	.submit-btn {
		height: 72rpx;
		background-color: #5683ec;
		border-radius: 36rpx;
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: center;
		align-content: center;
		margin-top: 50rpx;
		margin-left: 60rpx;
		margin-right: 60rpx;
		font-size: 30rpx;
		color: #fafafa;
	}
</style>
